package start;

import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean {
    public MyFactoryBean() {
        System.out.println("---------"+ this+"---------");
    }
    @Override
    public Object getObject() throws Exception {
        Object result = null;
        System.out.println(this+":  getObject()="+result);
        return result;
    }

    @Override
    public Class getObjectType() {
        Object result = null;
        System.out.println(this+":  getObjectType()="+result.getClass().getCanonicalName());
        return null;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
